import request from "@/utils/request";

export function queryGeneratorDatabaseDocumentConfigListByConditionMap2(data) {
  return request({
    url: 'api/efficiencyTools/generatorDatabaseDocumentConfig/queryGeneratorDatabaseDocumentConfigListByConditionMap2',
    method: 'get',
    params: data,
  })
}

export function downloadDataToExcel(data) {

  return request({
    url: 'api/efficiencyTools/generatorDatabaseDocumentConfig/downloadGeneratorDatabaseDocumentConfigListByCondition',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function queryGeneratorDatabaseDocumentConfigByCondition(data) {
  return request({
    url: 'api/efficiencyTools/generatorDatabaseDocumentConfig/queryGeneratorDatabaseDocumentConfigByCondition',
    method: 'get',
    params: data,
  })
}


export function updateGeneratorDatabaseDocumentConfig(data) {
  return request({
    url: 'api/efficiencyTools/generatorDatabaseDocumentConfig/updateGeneratorDatabaseDocumentConfig',
    method: 'post',
    data: data,
  })
}

export function saveGeneratorDatabaseDocumentConfigSingleLineData(data) {
  return request({
    url: 'api/efficiencyTools/generatorDatabaseDocumentConfig/saveGeneratorDatabaseDocumentConfigSingleLineData',
    method: 'post',
    data: data,
  })
}

export function deleteGeneratorDatabaseDocumentConfigByIntegerIdList(data) {
  return request({
    url: 'api/efficiencyTools/generatorDatabaseDocumentConfig/deleteGeneratorDatabaseDocumentConfigByIntegerIdList',
    method: 'delete',
    params: data,
  })
}

export function insertByExcel(data) {
  return request({
    url: '/api/efficiencyTools/generatorDatabaseDocumentConfig/insertByExcel',
    method: 'post',
    data: data
  })
}


export function generatorDatabaseDocument(data) {
  return request({
    url: 'api/databaseDocument/generator',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}


export function generatorDatabaseBackupShell(data) {
  return request({
    url: '/api/efficiencyTools/generatorDatabaseBackupShell',
    method: 'get',
    params: data,
    responseType: 'blob'
  })
}
